import React from 'react'
import routerconfig from '../router' // 文件夹下的idnex.js 或者index.jsx 可以省略， css不可以，
import {useRoutes} from "react-router-dom"
import {Suspense} from "react" // 路由加载出来前的loading
function App() {
  return (
    <div>
        <Suspense fallback={<div>...加载中</div>}>
            {
                useRoutes(routerconfig)
            }
        </Suspense>
    </div>
  )
}

export default App